<?xml version="1.0" encoding="UTF-8"?>
<!--=====================================================================
Example Instance for SOS 2.0 Capabilities document.
=======================================================================-->
<sos:Capabilities version="2.0.0" xmlns:sos="http://www.opengis.net/sos/2.0" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:swes="http://www.opengis.net/swes/2.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sos/2.0 http://schemas.opengis.net/sos/2.0.0/sos.xsd">
  <ows:ServiceIdentification>
    <ows:Title>My SOS</ows:Title>
    <ows:Abstract>My SOS serves water observations</ows:Abstract>
    <ows:Keywords>
      <ows:Keyword>water level</ows:Keyword>
      <ows:Keyword>gauge height</ows:Keyword>
      <ows:Keyword>waterspeed</ows:Keyword>
    </ows:Keywords>
    <ows:ServiceType codeSpace="http://opengeospatial.net">OGC:SOS</ows:ServiceType>
    <ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
    <ows:Profile>http://www.opengis.net/spec/SOS/2.0/conf/gfoi</ows:Profile>
    <ows:Profile>http://www.opengis.net/spec/SOS/2.0/conf/obsByIdRetrieval</ows:Profile>
    <ows:Profile>http://www.opengis.net/spec/SOS/2.0/conf/sensorInsertion</ows:Profile>
    <ows:Profile>http://www.opengis.net/spec/SOS/2.0/conf/sensorDeletion</ows:Profile>
    <ows:Profile>http://www.opengis.net/spec/SOS/2.0/conf/obsInsertion</ows:Profile>
    <ows:Profile>http://www.opengis.net/spec/SOS/2.0/conf/resultInsertion</ows:Profile>
    <ows:Profile>http://www.opengis.net/spec/SOS/2.0/conf/resultRetrieval</ows:Profile>
    <ows:Profile>http://www.opengis.net/spec/SOS/2.0/conf/spatialFilteringProfile</ows:Profile>
    <ows:Profile>http://www.opengis.net/spec/SOS/2.0/conf/soap</ows:Profile>
    <ows:Profile>http://www.opengis.net/spec/SWE/2.0/conf/uml-block-components</ows:Profile>
    <ows:Profile>http://www.opengis.net/spec/SWE/2.0/conf/uml-record-components</ows:Profile>
    <ows:Profile>http://www.opengis.net/spec/SWE/2.0/conf/xsd-record-components</ows:Profile>
    <ows:Profile>http://www.opengis.net/spec/SWE/2.0/conf/xsd-block-components</ows:Profile>
    <ows:Profile>http://www.opengis.net/spec/OMXML/2.0/conf/samplingPoint</ows:Profile>
    <ows:Profile>http://www.opengis.net/spec/OMXML/2.0/conf/observation</ows:Profile>
    <ows:Fees>NONE</ows:Fees>
    <ows:AccessConstraints>NONE</ows:AccessConstraints>
  </ows:ServiceIdentification>
  
  <!-- ServiceProvider section contains information about service provider like contact, adress, etc. -->
  <ows:ServiceProvider>
    <ows:ProviderName>My Provider</ows:ProviderName>
    <ows:ProviderSite xlink:href="http://my.organization.org/sos"/>
    <ows:ServiceContact>
      <ows:ContactInfo>
        <ows:Phone>
          <ows:Voice>+49.123.456 789- 0</ows:Voice>
          <ows:Facsimile>+49.123.456 789- 0</ows:Facsimile>
        </ows:Phone>
        <ows:Address>
          <ows:DeliveryPoint>My Street 24</ows:DeliveryPoint>
          <ows:City>MyCity</ows:City>
          <ows:PostalCode>12345</ows:PostalCode>
          <ows:Country>MyCountry</ows:Country>
          <ows:ElectronicMailAddress>info@my.organization.org</ows:ElectronicMailAddress>
        </ows:Address>
      </ows:ContactInfo>
      <ows:Role/>
    </ows:ServiceContact>
  </ows:ServiceProvider>
  
  <!-- extension is used for providing profile specific sections; in this case, the InsertionCapabilities section is contained, because the SOS supports the  obs- and resultInsertion profiles-->
  <sos:extension>
	  <!-- In the InsertionCapabilities, the different formats and types supported for sensor and observation insertion are listed -->
    <sos:InsertionCapabilities>
      <sos:procedureDescriptionFormat>http://www.opengis.net/sensorML/1.0.1</sos:procedureDescriptionFormat>
      <sos:featureOfInterestType>http://www.opengis.net/def/samplingFeatureType/OGC-OM/2.0/SF_SamplingPoint</sos:featureOfInterestType>
      <sos:observationType>http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_Observation</sos:observationType>
       <sos:observationType>http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_Measurement</sos:observationType>
      <sos:resultType>http://www.opengis.net/swe/2.0/DataArray</sos:resultType>
      <sos:supportedEncoding>http://www.opengis.net/swe/2.0/TextEncoding</sos:supportedEncoding>
    </sos:InsertionCapabilities>
  </sos:extension>
  
  <!-- the filterCapabilities section lists the filters and operands which are supported in the observation, result and feature retrieval operations -->
  <sos:filterCapabilities>
    <fes:Filter_Capabilities>
      <fes:Conformance>
        <fes:Constraint name="ImplementsQuery">
          <ows:NoValues/>
          <ows:DefaultValue>false</ows:DefaultValue>
        </fes:Constraint>
        <fes:Constraint name="ImplementsAdHocQuery">
          <ows:NoValues/>
          <ows:DefaultValue>false</ows:DefaultValue>
        </fes:Constraint>
        <fes:Constraint name="ImplementsFunctions">
          <ows:NoValues/>
          <ows:DefaultValue>false</ows:DefaultValue>
        </fes:Constraint>
        <fes:Constraint name="ImplementsMinStandardFilter">
          <ows:NoValues/>
          <ows:DefaultValue>false</ows:DefaultValue>
        </fes:Constraint>
        <fes:Constraint name="ImplementsStandardFilter">
          <ows:NoValues/>
          <ows:DefaultValue>false</ows:DefaultValue>
        </fes:Constraint>
        <fes:Constraint name="ImplementsMinSpatialFilter">
          <ows:NoValues/>
          <ows:DefaultValue>true</ows:DefaultValue>
        </fes:Constraint>
        <fes:Constraint name="ImplementsSpatialFilter">
          <ows:NoValues/>
          <ows:DefaultValue>true</ows:DefaultValue>
        </fes:Constraint>
        <fes:Constraint name="ImplementsMinTemporalFilter">
          <ows:NoValues/>
          <ows:DefaultValue>true</ows:DefaultValue>
        </fes:Constraint>
        <fes:Constraint name="ImplementsTemporalFilter">
          <ows:NoValues/>
          <ows:DefaultValue>true</ows:DefaultValue>
        </fes:Constraint>
        <fes:Constraint name="ImplementsVersionNav">
          <ows:NoValues/>
          <ows:DefaultValue>false</ows:DefaultValue>
        </fes:Constraint>
        <fes:Constraint name="ImplementsSorting">
          <ows:NoValues/>
          <ows:DefaultValue>false</ows:DefaultValue>
        </fes:Constraint>
        <fes:Constraint name="ImplementsExtendedOperators">
          <ows:NoValues/>
          <ows:DefaultValue>false</ows:DefaultValue>
        </fes:Constraint>
      </fes:Conformance>
      <fes:Spatial_Capabilities>
        <fes:GeometryOperands>
          <fes:GeometryOperand name="gml:Point"/>
          <fes:GeometryOperand name="gml:Polygon"/>
        </fes:GeometryOperands>
        <fes:SpatialOperators>
          <fes:SpatialOperator name="BBOX"/>
          <fes:SpatialOperator name="Intersects"/>
          <fes:SpatialOperator name="Within"/>
        </fes:SpatialOperators>
      </fes:Spatial_Capabilities>
      <fes:Temporal_Capabilities>
        <fes:TemporalOperands>
          <fes:TemporalOperand name="gml:TimePeriod"/>
          <fes:TemporalOperand name="gml:TimeInstant"/>
        </fes:TemporalOperands>
        <fes:TemporalOperators>
          <fes:TemporalOperator name="During"/>
          <fes:TemporalOperator name="After"/>
          <fes:TemporalOperator name="TEquals"/>
        </fes:TemporalOperators>
      </fes:Temporal_Capabilities>
    </fes:Filter_Capabilities>
  </sos:filterCapabilities>
  <!-- The contents section contains information about the observations offered by the service. The observations are group per sensor(-system) into observation offerings.-->
  <sos:contents>
    <sos:Contents>
      <swes:offering>
        <sos:ObservationOffering>
          <swes:identifier>http://www.my_namespace.org/water_gage_1_observations</swes:identifier>
          <swes:procedure>http://www.my_namespace.org/sensors/Water_Gage_1</swes:procedure>
          <swes:procedureDescriptionFormat>http://www.opengis.net/sensorML/1.0.1</swes:procedureDescriptionFormat>
          <swes:observableProperty>urn:ogc:def:phenomenon:OGC:water_level</swes:observableProperty>
          <swes:relatedFeature xlink:href="http://wfs.example.org?request=getFeature&amp;featureid=Rhine_Sandbank_123"/>
          <sos:observedArea>
            <gml:Envelope srsName="http://www.opengis.net/def/crs/EPSG/0/4326">
              <gml:lowerCorner>50.7167 7.76667</gml:lowerCorner>
              <gml:upperCorner>53.7167 9.76667</gml:upperCorner>
            </gml:Envelope>
          </sos:observedArea>
          <sos:phenomenonTime>
            <gml:TimePeriod gml:id="phenomenonTime">
              <gml:beginPosition>2009-01-11T16:22:25.00Z</gml:beginPosition>
              <gml:endPosition>2010-08-21T08:32:10.00Z</gml:endPosition>
            </gml:TimePeriod>
          </sos:phenomenonTime>
        </sos:ObservationOffering>
      </swes:offering>
      <sos:responseFormat>http://www.opengis.net/om/2.0</sos:responseFormat>
      <sos:observationType>http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_Measurement</sos:observationType>
      <sos:resultType>http://www.opengis.net/gml/3.2/measureType</sos:resultType>
    </sos:Contents>
  </sos:contents>
</sos:Capabilities>
